/**   
 * @Title: ShengFuCaiCurrentExpectInfo.java 
 * @Package com.esun.rabbit2.communicaters.sportteryshengfu 
 * @Description: 获取胜负彩当前期号剩余时间接口
 * @author: Billy Qigs@500wan.com   
 * @date: 2012-4-25 下午3:35:48  
 * Copyright: (C) 2011 Shenzhen E-sun Sky Net Technology Co.,ltd.
 */
package com.esun.rabbit2.communicaters.sportteryshengfu;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;

import javax.xml.parsers.ParserConfigurationException;

import org.apache.http.client.ClientProtocolException;
import org.xml.sax.SAXException;

import com.esun.config.BussinessCode;
import com.esun.config.Config;
import com.esun.config.Key;
import com.esun.network.ServerCommunicater;
import com.esun.util.HashMapUtil;

/**
 * @ClassName: ShengFuCaiCurrentExpectInfo
 * @Description: 获取胜负彩当前期号剩余时间接口
 * @author: Billy Qigs@500wan.com
 * @date: 2012-4-25 下午3:35:48
 * 
 */
public class ShengFuCaiCurrentExpectInfo extends ServerCommunicater {

	public boolean isSucceedGetShengFuCaiExpectInfo() throws ClientProtocolException, IOException, ParserConfigurationException, SAXException {
		boolean isSucceed = false;
		;

		ArrayList<HashMap<String, String>> list = new ArrayList<HashMap<String, String>>();

		list.add(HashMapUtil.getMapItem(BussinessCode.PASER_MID, BussinessCode.MID_FUCAI3D_TIMELEFT));
		list.add(HashMapUtil.getMapItem(Key.KEY_LOTID, Config.SHENGFUCAI));

		super.getServerResponse(list, true);

		if (super.getState() == 100) {
			isSucceed = true;
		} else {
			isSucceed = false;
		}

		return isSucceed;
	}

}
